using System;
using System.Windows;
using System.Windows.Controls;
namespace Coding4Fun.Phone.Controls
{
	public class MessagePrompt : UserPrompt
	{
		public static readonly DependencyProperty BodyProperty = DependencyProperty.Register("Body", typeof(object), typeof(MessagePrompt), new PropertyMetadata(null));
		public object Body
		{
			get
			{
				return base.GetValue(MessagePrompt.BodyProperty);
			}
			set
			{
				base.SetValue(MessagePrompt.BodyProperty, value);
			}
		}
		public MessagePrompt()
		{
			base.set_DefaultStyleKey(typeof(MessagePrompt));
			this.MessageChanged = new Action(this.SetBodyMessage);
		}
		protected internal void SetBodyMessage()
		{
			TextBlock textBlock = new TextBlock();
			textBlock.set_Text(base.Message);
			textBlock.set_TextWrapping(2);
			this.Body = textBlock;
		}
	}
}
